import request from "@/utils/request";

export const conditionApis = (id) => {
  return request({
    url: "/houses/condition",
    params: {
      id,
    },
  });
};

// 找房页面的list列表
export const housesListApi = ({
  cityId = "",
  area = "",
  subway = "",
  rentType = "",
  price = "",
  more = "",
  roomType,
  oriented,
  characteristic,
  floor,
  start,
  end,
}) => {
  return request({
    url: "/houses",
    params: {
      cityId,
      area,
      subway,
      rentType,
      price,
      more,
      roomType,
      oriented,
      characteristic,
      floor,
      start,
      end,
    },
  });
};
